package com.xysoft.framework.mvc;

import java.util.Map;

import org.springframework.web.servlet.view.json.MappingJackson2JsonView;

public class JacksonView extends MappingJackson2JsonView {

	@Override
	protected Object filterModel(Map<String, Object> model) {
		return model.containsKey(ViewConstants.JSON_MODEL_KEY) ? model.get(ViewConstants.JSON_MODEL_KEY) : super
				.filterModel(model);
	}
}
